# -*- coding : utf_8 -*-
"""
=======================================
Time : 2025/4/13 20:11
Author : 田霄汉
Email : 522989570@qq.com
File : assert_data.py
Project : pandas_demo
=======================================
"""


class AssertData:

    def score_invalidation(self, row):
        try:
            assert 0 <= row.score <= 100
        except:
            print(f'#{row.id}\tstudent {row.name} has an invalid score {row.score}')
